CREATE EXTERNAL TABLE IF NOT EXISTS spmi_ods.spmi_schema_history(
id                                                 bigint                         COMMENT '主键ID',
script                                             String                         COMMENT 'SCRIPT',
installed_by                                       String                         COMMENT 'INSTALLED_BY',
installed_on                                       timestamp                      COMMENT 'INSTALLED_ON',
success                                            smallint                       COMMENT 'SUCCESS'
)
COMMENT ''
PARTITIONED BY (dt STRING COMMENT '更新/创建日期 (yyyy-MM-dd)')
STORED AS PARQUET
LOCATION '/dw/hive/spmi_ods.db/external/spmi_schema_history'
TBLPROPERTIES (
  'parquet.column.index.access'='true'
);